//使用生成器可以控制函数的执行

function foo() {
  const value1 = 100;
  console.log(value1)

  const value2 = 200;
  console.log(value2)

  const value3 = 300;
  console.log(value3)
}
foo()